from buffer import *
from define_task import *

buffer_list = [] #管理所有的buffer,为每个nfc创建一个buffer

def buffer_init():
    buffer_list.clear()
    for i in range(nfc_count):
        buffer_list.append(Buffer(buffer_size))

def resource_fresh(resource):
    for key in resource:
        resource[key] = 0
    
    buffer_init()